﻿using MediatR;
using RedDragon.Common.Dtos;
using SqlSugar;
using T.Common.Domain.Common;

namespace RedDragon.ERP.API.Application.Commands.Supplieries
{
    /// <summary>
    /// 获取供应商信息条件
    /// </summary>
    public class SearchSupplierCommand : IRequest<Result<PageResultDto<SupplierDto>>>
    {
        /// <summary>
        /// 当前页
        /// </summary>
        public int PageIndex { get; set; }

        /// <summary>
        /// 每页显示几条
        /// </summary>
        public int PageSize { get; set; }

        /// <summary>
        /// 供应商编码
        /// </summary>
        public string? SupplierCoding { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        public string? SupplierName { get; set; }

        /// <summary>
        /// 是否有效 1-有效 2-无效
        /// </summary>
        public int SupplierStatus { get; set; }

        /// <summary>
        /// 供应商区分
        /// </summary>
        public string? SupplierDiff { get; set; }

        /// <summary>
        /// 所在城市
        /// </summary>
        public int CityId { get; set; }
    }
}
